package com.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.domain.ChatRoomEntity;
import com.dto.PageResult;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 聊天室房间表 服务类
 * </p>
 *
 * @author sly
 * @since 2023-12-30
 */
public interface ChatRoomService extends IService<ChatRoomEntity> {

    @Transactional(rollbackFor = Exception.class)
    PageResult<ChatRoomEntity> pageListChat(ChatRoomEntity chat);

    ChatRoomEntity getChatDetail(Long chatId);

    void addChat(ChatRoomEntity chat);

    void updateChat(ChatRoomEntity chat);

    void deleteChat(Long chatId);
}
